package com.kuaidi100.sdk.response.samecity;

import com.fasterxml.jackson.databind.ObjectMapper;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * @Author: api.kuaidi100.com
 * @Date: 2021-02-20 9:53
 */
public class OrderResp {
   /**
    * 快递100任务id（归属快递100）
    */
   private String taskId;
   /**
    * 快递公司
    */
   private String com;
   /**
    * 快递100订单号（归属快递100）
    */
   private String orderId;
   /**
    * 费用
    */
   private Integer fee;
   /**
    * 距离（公里）
    */
   private Integer distance;
   /**
    * 快递公司单号
    */
   private String kuaidiNum;

   @Override
   public String toString() {
      try {
         ObjectMapper objectMapper = new ObjectMapper();
         return objectMapper.writeValueAsString(this);
      } catch (Exception e) {
         return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                 .append("taskId", taskId)
                 .append("com", com)
                 .append("orderId", orderId)
                 .append("fee", fee)
                 .append("distance", distance)
                 .append("kuaidiNum", kuaidiNum)
                 .toString();
      }
   }

   public String getTaskId() {
      return taskId;
   }

   public void setTaskId(String taskId) {
      this.taskId = taskId;
   }

   public String getCom() {
      return com;
   }

   public void setCom(String com) {
      this.com = com;
   }

   public String getOrderId() {
      return orderId;
   }

   public void setOrderId(String orderId) {
      this.orderId = orderId;
   }

   public Integer getFee() {
      return fee;
   }

   public void setFee(Integer fee) {
      this.fee = fee;
   }

   public Integer getDistance() {
      return distance;
   }

   public void setDistance(Integer distance) {
      this.distance = distance;
   }

   public String getKuaidiNum() {
      return kuaidiNum;
   }

   public void setKuaidiNum(String kuaidiNum) {
      this.kuaidiNum = kuaidiNum;
   }
}
